package training_process.TrainingIV;

/**
 * Author by KyrieC
 * Created by sheting on 2023/11/21
 */

public class Exercise {
    private BinaryOperation binaryOperation;

    public Exercise(BinaryOperation binaryOperation) {
        this.binaryOperation = binaryOperation;
    }

    public String getQuestion() {
        return binaryOperation.toString();
    }

    public int getAnswer() {
        return binaryOperation.getResult();
    }
}

